Form:Book

From open-support.info

(Difference between revisions)
Jump to: navigation, search
m
m
 
(269 intermediate revisions not shown)
Line 8: Line 8:
</noinclude><includeonly>{{#vardefine:root|{{#titleparts:{{FULLPAGENAME}}|1}}
</noinclude><includeonly>{{#vardefine:root|{{#titleparts:{{FULLPAGENAME}}|1}}
}}{{#vardefine:path|{{#titleparts:{{PAGENAME}}||2}}
}}{{#vardefine:path|{{#titleparts:{{PAGENAME}}||2}}
 +
}}{{#vardefine:main|{{#if:{{#show:{{#var:root}}|?docinfo master page#}}
 +
|{{#show:{{#var:root}}|?docinfo master page#}}{{#if:{{#var:path}}
 +
  |/{{#var:path}}
 +
  }}
 +
}}
 +
}}{{#ifeq:{{#var:main}}|{{FULLPAGENAME}}
 +
|{{#vardefine:main|}}
 +
|
 +
}}{{#vardefine:newpage|{{#if:{{#show:{{FULLPAGENAME}}|?revision id}}||true}}
 +
}}{{#vardefine:tblColorHeader|<nowiki>#c5d8fc</nowiki>
 +
}}{{#vardefine:tblColorBorder|<nowiki>#aaaaaa</nowiki>
 +
}}{{#vardefine:tblColorData  |<nowiki>#f8f8f8</nowiki>
}}<div id="wikiPreview" style="display:none; padding-bottom:25px; margin-bottom:25px; border-bottom:1px solid #AAAAAA;"></div>
}}<div id="wikiPreview" style="display:none; padding-bottom:25px; margin-bottom:25px; border-bottom:1px solid #AAAAAA;"></div>
-
{{{info
+
{{{info|onlyinclude free text|strict}}}
-
|onlyinclude free text
+
-
}}}
+
{{{for template|Book}}}
{{{for template|Book}}}
-
'''Book type:'''
+
<!--
-
{{{field
+
- debug -
-
|book type
+
root:   {{#var:root}}
-
|input type=dropdown
+
path:    {{#var:path}}
-
|values=Master book,Subsidiary book
+
main:    {{#var:main}}
-
|default=Master book
+
newpage: {{#var:newpage}}
-
|show on select=Master book=>master;Subsidiary book=>subsidiary
+
-->
-
}}}
+
{|style="width:100%;" cellspacing="0"
-
<div id="master">
+
!style="background-color:{{#var:tblColorHeader}};<!--
-
'''Next page:'''
+
    --> border-width:1px 1px 0 1px;<!--
-
{{{field|next  |input type=text|size=40}}}
+
    --> border-style:solid;<!--
-
</div>
+
    --> border-color:{{#var:tblColorBorder}};<!--
-
<div id="subsidiary">
+
    -->"|{{message|Page properties}} {{
-
'''Master page:'''
+
#info:{{LangSwitch
-
{{#if:{{#titleparts:{{PAGENAME}}||2}}
+
  |en= These inputs specify page properties of this book{{#if:{{#var:path}}
-
|{{#if:{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo master page#}}
+
  |, or they are inherited from the master page if they are blank
-
|{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo master page#}}<!--
+
  }}.
-
   -->/{{#titleparts:{{PAGENAME}}||2}}
+
  |de= Diese Eingänge festlegen Seite Eigenschaften dieses Buches{{#if:{{#var:path}}
 +
  |, oder sie werden von der Master-Seite geerbt, wenn sie leer sind.
 +
  }}.
 +
  |fr= Ces entrées spécifier les propriétés de page de ce livre{{#if:{{#var:path}}
 +
  |, ou qu'ils sont hérités de la page maître quand ils sont vides.
 +
  }}
 +
   |ja= ページプロパティを定義します{{#if:{{#var:path}}
 +
  |。 入力欄が空白の場合は、主文書のプロパティ値が継承されます
 +
  }}
   }}
   }}
-
|{{{field|master page|input type=text|size=40}}}
+
}}
-
}}
+
!style="width:1em;"|&nbsp;
-
'''Rev:'''
+
!style="background-color:{{#var:tblColorHeader}};<!--
-
{{{field|master rev|input type=text|size=10}}}
+
    --> border-width:1px 1px 0 1px;<!--
-
</div>
+
    --> border-style:solid;<!--
-
----
+
    --> border-color:{{#var:tblColorBorder}};<!--
-
{| style="width:100%" cellspacing="0" cellpadding="0"
+
    -->"|{{message|Document information}} {{
-
| style="vertical-align:top" |
+
#info:{{LangSwitch
-
{| cellspacing="0" cellpadding="0"
+
  |en= These inputs specify document information{{#if:{{#var:path}}
-
|-
+
  |, or are inherited from the root page of this book if they are blank
-
|'''Heading:'''
+
  }}.
-
|{{{field|heading|input type=text|size=40}}}
+
  |de= Diese Eingänge angeben Dokument Informationen{{#if:{{#var:path}}
 +
  |, Oder sind von der Wurzel Seite dieses Buches vererbt, wenn sie leer sind
 +
  }}.
 +
  |fr= Ces entrées de spécifier des informations de documents{{#if:{{#var:path}}
 +
  |, ou sont hérités de la page racine de ce livre si elles sont vides
 +
  }}.
 +
  |ja= 文書情報を入力します{{#if:{{#var:path}}
 +
  |。 入力欄が空白の場合は、ブックのルートページの情報が継承されます
 +
  }}。
 +
  }}
 +
}}
|-
|-
-
|'''Title:'''
+
|style="background-color:{{#var:tblColorData}};<!--
-
|{{{field|title |input type=text|size=40}}}
+
    --> border:1px solid {{#var:tblColorBorder}};<!--
-
|-
+
    --> vertical-align:top;<!--
-
|'''Description:'''
+
    --> width:100%;<!--
-
|{{{field|desc|input type=text|size=40}}}
+
    -->"|
-
|}
+
  {|style="background-color:{{#var:tblColorData}};" class="fullwidth form"
-
|style="text-align:right;vertical-align:top;"|
+
!{{message|Master page}}:
-
{| class="wikitable"
+
|{{#if:{{#var:path}}
-
! Document information
+
  |{{#if:{{#var:main}}
 +
  |&nbsp;[[{{#show:{{#var:root}}|?docinfo master page#}}/{{#var:path}}]]
 +
  |&nbsp;''n/a''
 +
  }}
 +
  |{{{field|master page|property=docinfo master page|input type=text|size=40|class=fullwidth}}}
 +
  }}
 +
|{{#if:{{#var:path}}
 +
  |<!-- NO TOOLTIP -->
 +
  |{{#info:{{LangSwitch
 +
    |en= Please input the master page name when it is subsidiary.
 +
    |de= Bitte geben Sie die Master-Seite Name, wenn es Tochtergesellschaft ist.
 +
    |fr= S'il vous plaît entrer le nom de la page maître, quand elle est la filiale.
 +
    |ja= このページが従属文書である場合に、主文書のページ名を入力してください。
 +
    }}
 +
  }}
 +
  }}
  |-
  |-
-
  |
+
  !<!-- BLANK -->
-
  {|
+
|&nbsp;{{message|Revision ID}}:  {{#switch:THEN
-
   |'''Status:'''
+
   |{{#if:{{#var:path}}|NOT|THEN}}
-
   |style="text-align:left;"|{{{field
+
   |{{#if:{{#var:main}}|THEN}}={{{field|master rev|property=docinfo master rev|input type=text|size=10|class=autowidth}}}{{#info:{{LangSwitch
-
  |status
+
    |en= Input the revision id of the master page to detect obsolescence, as required.
-
  |property=docinfo status
+
    |de= Geben Sie die Revision der Master-Seite-ID, um überholte erkennen, wie erforderlich.
-
  |input type=dropdown
+
    |fr= Entrée de la révision id de la page maître pour détecter l'obsolescence, comme l'exige.
-
  |values=draft,effective,obsolete
+
    |ja= 主ページの版番号を入力すると、主ページのページ更新を検出できます。
-
   }}}
+
    }}
-
   |'''Progress:'''
+
   }}{{#if:{{#var:main}}
-
   |style="text-align:left;"|{{{field
+
  |&nbsp;{{int:currentrev}}: {{#show:{{#var:main}}|?revision id#}}
-
  |progress
+
  }}
-
   |property=docinfo progress
+
   |''n/a''
-
   |input type=dropdown
+
   }}
-
  }}}
+
|-
-
  |-
+
!{{message|Next page}}:
-
  |'''Language:'''
+
|{{#switch:THEN
-
   |style="text-align:left;"|{{{field|lang|input type=text|size=10}}}
+
  |{{#if:{{#var:main}}|NOT|THEN}}
-
   |'''Priority:'''
+
  |{{#if:{{#var:path}}|NOT|THEN}}={{{field|next|property=book next|input type=text|size=40|class=fullwidth|default={{#if:{{#var:newpage}}|{{#iferror:../{{#expr:{{SUBPAGENAME}}+1}} }} }} }}}
-
   |style="text-align:left;"|{{{field
+
  |&nbsp;[[{{#rel2abs:{{#show:{{#var:main}}|?book next}} }}]]
-
  |priority
+
  }}
-
  |property=docinfo priority
+
|{{#switch:THEN
-
  |input type=dropdown
+
  |{{#if:{{#var:main}}|NOT|THEN}}
-
  }}}
+
  |{{#if:{{#var:path}}|NOT|THEN}}={{
-
  |-
+
   #info:{{LangSwitch
-
   |'''Category:'''
+
    |en= This input required when it is the master page, normally with a relative path description.
-
   |colspan="3"|{{{field
+
    |ja= このページが主ページの場合に入力してください。 通常は相対パスで表記します。
-
  |category
+
    }}
-
  |property=docinfo category
+
   }}
-
  |input type=text
+
  }}
-
  }}}
+
|-
-
  |-
+
!{{message|Heading}}:
-
  |'''Author:'''
+
|{{{field|heading|property=book heading|input type=text|size=40|class=fullwidth|default={{#if:{{#var:newpage}}|{{#if:{{#var:main}}|{{#show:{{#var:main}}|?book heading}}|{{#if:{{#var:path}}|{{#replace:{{#var:path}}|/|.}}.}} }} }} }}}
-
  |colspan="3"|{{{field|author|input type=text}}}
+
|{{#info:{{message|Default value}}: {{#if:{{#var:main}}
-
  |-
+
  |{{#show:{{#var:main}}|?book heading}}
-
  |'''Editor:'''
+
  |''blank''
-
  |colspan="3"|{{{field|editor|input type=text}}}
+
  }}
-
  |-
+
  }}
-
  |'''Support:'''
+
|-
-
  |colspan="3"|{{{field|support|input type=text}}}
+
!{{message|Title}}:
-
  |}
+
|{{{field|title|property=book title|input type=text|size=40|class=fullwidth|default={{#if:{{#var:main}}|{{#show:{{#var:main}}|?book title}} }} }}}
 +
|{{#info:{{message|Default value}}: {{#if:{{#var:main}}
 +
  |{{#show:{{#var:main}}|?book title}}
 +
  |''blank''
 +
  }}
 +
   }}
 +
|-
 +
!{{message|Description}}:
 +
|{{{field|desc|property=description|input type=text|size=40|class=fullwidth}}}
 +
|{{
 +
   #info:{{message|Default value}}: {{
 +
  #if:{{#var:main}}
 +
  |{{#show:{{#var:main}}|?description}}
 +
  |''blank''
 +
  }}
 +
   }}
 +
|}
 +
|<!-- SPACE -->
 +
|style="background-color:{{#var:tblColorData}};<!--
 +
    --> border:1px solid {{#var:tblColorBorder}};<!--
 +
    --> vertical-align:top;<!--
 +
    --> width:inherit;<!--
 +
    -->"|
 +
{|style="background-color:{{#var:tblColorData}};" class="autowidth"
 +
!{{message|Status}}:
 +
|{{{field|status|property=docinfo status|input type=dropdown|values=draft,effective,obsolete|default={{#if:{{#var:newpage}}|draft}} }}}
 +
!{{message|Progress}}:
 +
|{{{field|progress|property=docinfo progress|input type=dropdown}}}
 +
|-
 +
!{{message|Language}}:
 +
|{{#if:{{#var:path}}
 +
   |&nbsp;''{{#show:{{#var:root}}|?docinfo language}} - <!--
 +
  -->{{#language:{{#show:{{#var:root}}|?docinfo language}} }}''
 +
   |{{{field|lang|input type=text|size=8}}}
 +
  }}
 +
!{{message|Priority}}:
 +
|{{{field|priority|property=docinfo priority|input type=dropdown}}}
 +
|-
 +
!{{message|Category}}:
 +
|colspan="3"|{{{field|category|property=docinfo category|input type=text}}}
 +
|-
 +
!{{message|Author}}:
 +
|colspan="3"|{{{field|author|input type=text|default={{#if:{{#var:newpage}}|current user}} }}}
 +
|-
 +
!{{message|Editor}}:
 +
|colspan="3"|{{{field|editor|input type=text}}}
 +
|-
 +
!{{message|Support}}:
 +
|colspan="3"|{{{field|support|input type=text}}}
  |}
  |}
|}
|}
{{{end template}}}
{{{end template}}}
-
 
+
'''{{message|Contents}}:'''
-
{{{standard input|free text
+
<!-- {{{standard input|free text|rows=25|cols=60|preload=Template:Book/preload|class=fullwidth}}} -->
-
|rows=15
+
{{:Form:Book/free text}}
-
|cols=60
+
-
|class=fullwidth
+
-
}}}
+
{{{standard input|summary}}}
{{{standard input|summary}}}
Line 111: Line 199:
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}
-
 
</includeonly>
</includeonly>

Latest revision as of 11:16, 29 April 2011

This is the "Book" form. To create a page with this form, enter the page name below; if a page with that name already exists, you will be sent to a form to edit that page.



Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox