Form:Book

From open-support.info

(Difference between revisions)
Jump to: navigation, search
m
m
 
(168 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:{{#var:path}}
+
}}{{#vardefine:main|{{#if:{{#show:{{#var:root}}|?docinfo master page#}}
-
|{{#if:{{#show:{{#var:root}}|?docinfo master page#}}
+
|{{#show:{{#var:root}}|?docinfo master page#}}{{#if:{{#var:path}}
-
  |{{#show:{{#var:root}}|?docinfo master page#}}/{{#var:path}}
+
  |/{{#var:path}}
   }}
   }}
  }}
  }}
 +
}}{{#ifeq:{{#var:main}}|{{FULLPAGENAME}}
 +
|{{#vardefine:main|}}
 +
|
 +
}}{{#vardefine:newpage|{{#if:{{#show:{{FULLPAGENAME}}|?revision id}}||true}}
}}{{#vardefine:tblColorHeader|<nowiki>#c5d8fc</nowiki>
}}{{#vardefine:tblColorHeader|<nowiki>#c5d8fc</nowiki>
}}{{#vardefine:tblColorBorder|<nowiki>#aaaaaa</nowiki>
}}{{#vardefine:tblColorBorder|<nowiki>#aaaaaa</nowiki>
}}{{#vardefine:tblColorData  |<nowiki>#f8f8f8</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}}}
-
{{#if:{{#var:path}}
+
<!--
-
|
+
- debug -
-
|{{{!}}cellspacing="0" style="width:100%;"
+
root:   {{#var:root}}
-
  {{!}}style="background-color:{{#var:tblColorData}};<!--
+
path:    {{#var:path}}
-
    --> border:1px solid {{#var:tblColorBorder}};<!--
+
  main:   {{#var:main}}
-
    --> width:100%;<!--
+
newpage: {{#var:newpage}}
-
    -->"|{{{field
+
-->
-
  |type
+
{|style="width:100%;" cellspacing="0"
-
  |property=docinfo type
+
-
  |input type=radiobutton
+
-
  |default=master
+
-
  |show on select=master=>form_master;subsidary=>form_subsidary;=>form_master;
+
-
  }}}
+
-
{{!}}}
+
-
}}
+
-
{|cellspacing="0" style="width:100%;"
+
!style="background-color:{{#var:tblColorHeader}};<!--
!style="background-color:{{#var:tblColorHeader}};<!--
     --> border-width:1px 1px 0 1px;<!--
     --> border-width:1px 1px 0 1px;<!--
     --> border-style:solid;<!--
     --> border-style:solid;<!--
     --> border-color:{{#var:tblColorBorder}};<!--
     --> border-color:{{#var:tblColorBorder}};<!--
-
     -->"|{{message|Page properties}} {{#info:Page properties.}}
+
     -->"|{{message|Page properties}} {{
 +
#info:{{LangSwitch
 +
  |en= These inputs specify page properties of this book{{#if:{{#var:path}}
 +
  |, or they are inherited from the master page if they are blank
 +
  }}.
 +
  |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}}
 +
  |。 入力欄が空白の場合は、主文書のプロパティ値が継承されます
 +
  }}。
 +
  }}
 +
}}
!style="width:1em;"|&nbsp;
!style="width:1em;"|&nbsp;
!style="background-color:{{#var:tblColorHeader}};<!--
!style="background-color:{{#var:tblColorHeader}};<!--
Line 47: Line 56:
     --> border-style:solid;<!--
     --> border-style:solid;<!--
     --> border-color:{{#var:tblColorBorder}};<!--
     --> border-color:{{#var:tblColorBorder}};<!--
-
     -->"|{{message|Document information}}
+
     -->"|{{message|Document information}} {{
 +
#info:{{LangSwitch
 +
  |en= These inputs specify document information{{#if:{{#var:path}}
 +
  |, or are inherited from the root page of this book if they are blank
 +
  }}.
 +
  |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}}
 +
  |。 入力欄が空白の場合は、ブックのルートページの情報が継承されます
 +
  }}。
 +
  }}
 +
}}
|-
|-
|style="background-color:{{#var:tblColorData}};<!--
|style="background-color:{{#var:tblColorData}};<!--
     --> border:1px solid {{#var:tblColorBorder}};<!--
     --> border:1px solid {{#var:tblColorBorder}};<!--
     --> vertical-align:top;<!--
     --> vertical-align:top;<!--
-
     --> width:95%;<!--
+
     --> width:100%;<!--
     -->"|
     -->"|
-
{{#if:{{#var:path}}
+
{|style="background-color:{{#var:tblColorData}};" class="fullwidth form"
-
|{{{!}}style="background-color:{{#var:tblColorData}};" class="fullwidth"
+
!{{message|Master page}}:
-
  !{{message|Heading}}:
+
|{{#if:{{#var:path}}
-
  {{!}}<div style="padding-right:0.5em;">{{{field
+
   |{{#if:{{#var:main}}
-
  |heading
+
   |&nbsp;[[{{#show:{{#var:root}}|?docinfo master page#}}/{{#var:path}}]]
-
  |input type=text
+
   |&nbsp;''n/a''
-
  |size=40
+
   }}
-
  |class=fullwidth
+
   |{{{field|master page|property=docinfo master page|input type=text|size=40|class=fullwidth}}}
-
  }}}</div>
+
   }}
-
   {{!}}-
+
  |{{#if:{{#var:path}}
-
  !{{message|Title}}:
+
   |<!-- NO TOOLTIP -->
-
  {{!}}<div style="padding-right:0.5em;">{{{field
+
   |{{#info:{{LangSwitch
-
   |title
+
    |en= Please input the master page name when it is subsidiary.
-
  |input type=text
+
    |de= Bitte geben Sie die Master-Seite Name, wenn es Tochtergesellschaft ist.
-
  |size=40
+
    |fr= S'il vous plaît entrer le nom de la page maître, quand elle est la filiale.
-
  |class=fullwidth
+
     |ja= このページが従属文書である場合に、主文書のページ名を入力してください。
-
  }}}</div>
+
-
  {{!}}-
+
-
{{#if:{{#var:main}}
+
-
|
+
-
|
+
-
  !{{message|Next page}}:
+
-
  {{!}}<div style="padding-right:0.5em;">{{{field
+
-
   |next
+
-
  |input type=text
+
-
  |size=40
+
-
  |class=fullwidth
+
-
   }}}</div>
+
-
   {{!}}-
+
-
}}
+
-
  !{{message|Description}}:
+
-
  {{!}}<div style="padding-right:0.5em;">{{{field
+
-
  |desc
+
-
  |input type=text
+
-
  |size=40
+
-
  |class=fullwidth
+
-
  }}}</div>
+
-
   {{!}}}
+
-
  |<div id="form_master">
+
-
  {{{!}}style="background-color:{{#var:tblColorData}};" class="fullwidth"
+
-
   !{{message|Heading}}:
+
-
  {{!}}<div style="padding-right:0.5em;">{{{field
+
-
  |heading
+
-
  |input type=text
+
-
  |size=40
+
-
  |class=fullwidth
+
-
  }}}</div>
+
-
   {{!}}-
+
-
  !{{message|Title}}:
+
-
  {{!}}<div style="padding-right:0.5em;">{{{field
+
-
  |title
+
-
  |input type=text
+
-
  |size=40
+
-
  |class=fullwidth
+
-
  }}}</div>
+
-
  {{!}}-
+
-
  !{{message|Next page}}:
+
-
  {{!}}<div style="padding-right:0.5em;">{{{field
+
-
  |next
+
-
  |input type=text
+
-
  |size=40
+
-
  |class=fullwidth
+
-
  }}}</div>
+
-
  {{!}}-
+
-
  !{{message|Description}}:
+
-
  {{!}}<div style="padding-right:0.5em;">{{{field
+
-
  |desc
+
-
  |input type=text
+
-
  |size=40
+
-
  |class=fullwidth
+
-
  }}}</div>
+
-
  {{!}}}
+
-
  </div><div id="form_subsidary">
+
-
  {{{!}}style="background-color:{{#var:tblColorData}};" class="fullwidth"
+
-
  !{{message|Master page}}:
+
-
  {{!}}{{#if:{{#var:path}}
+
-
  |{{#if:{{#show:{{#var:root}}|?docinfo master page#}}
+
-
     |{{#show:{{#var:root}}|?docinfo master page#}}/{{#var:path}}
+
     }}
     }}
-
   |<div style="padding-right:0.5em;">{{{field
+
   }}
-
    |master page
+
  }}
-
    |input type=text
+
|-
-
    |size=40
+
!<!-- BLANK -->
-
    |class=fullwidth
+
|&nbsp;{{message|Revision ID}}: {{#switch:THEN
-
    }}}</div>&nbsp;'''{{message|Revision}}:'''&nbsp;{{{field
+
  |{{#if:{{#var:path}}|NOT|THEN}}
-
    |master rev
+
  |{{#if:{{#var:main}}|THEN}}={{{field|master rev|property=docinfo master rev|input type=text|size=10|class=autowidth}}}{{#info:{{LangSwitch
-
    |input type=text
+
    |en= Input the revision id of the master page to detect obsolescence, as required.
-
    |size=10
+
    |de= Geben Sie die Revision der Master-Seite-ID, um überholte erkennen, wie erforderlich.
-
    |class=autowidth
+
    |fr= Entrée de la révision id de la page maître pour détecter l'obsolescence, comme l'exige.
-
    }}}-{{#var:main}}-{{#if:{{#var:main}}
+
    |ja= 主ページの版番号を入力すると、主ページのページ更新を検出できます。
-
    |&nbsp;({{message|Latest}}: {{#show:{{#var:main}}|?revision id#}})
+
     }}
     }}
 +
  }}{{#if:{{#var:main}}
 +
  |&nbsp;{{int:currentrev}}: {{#show:{{#var:main}}|?revision id#}}
   }}
   }}
-
   {{!}}-
+
   |''n/a''
-
  !{{message|Heading}}:
+
  }}
-
   {{!}}<div style="padding-right:0.5em;">{{{field
+
|-
-
  |heading
+
!{{message|Next page}}:
-
  |input type=text
+
|{{#switch:THEN
-
  |size=40
+
   |{{#if:{{#var:main}}|NOT|THEN}}
-
  |class=fullwidth
+
  |{{#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}} }} }} }}}
-
  }}}</div>
+
   |&nbsp;[[{{#rel2abs:{{#show:{{#var:main}}|?book next}} }}]]
-
  {{!}}-
+
  }}
-
   !{{message|Title}}:
+
|{{#switch:THEN
-
   {{!}}<div style="padding-right:0.5em;">{{{field
+
   |{{#if:{{#var:main}}|NOT|THEN}}
-
   |title
+
  |{{#if:{{#var:path}}|NOT|THEN}}={{
-
   |input type=text
+
   #info:{{LangSwitch
-
  |size=40
+
    |en= This input required when it is the master page, normally with a relative path description.
-
  |class=fullwidth
+
    |ja= このページが主ページの場合に入力してください。 通常は相対パスで表記します。
-
  }}}</div>
+
    }}
-
  {{!}}-
+
   }}
-
   !{{message|Description}}:
+
  }}
-
  {{!}}<div style="padding-right:0.5em;">{{{field
+
|-
-
   |desc
+
!{{message|Heading}}:
-
   |input type=text
+
|{{{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}}|/|.}}.}} }} }} }}}
-
  |size=40
+
|{{#info:{{message|Default value}}: {{#if:{{#var:main}}
-
  |class=fullwidth
+
  |{{#show:{{#var:main}}|?book heading}}
-
  }}}</div>
+
  |''blank''
-
   {{!}}}
+
  }}
-
   </div>
+
   }}
-
  }}
+
|-
-
|
+
!{{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}};<!--
|style="background-color:{{#var:tblColorData}};<!--
     --> border:1px solid {{#var:tblColorBorder}};<!--
     --> border:1px solid {{#var:tblColorBorder}};<!--
Line 182: Line 163:
  {|style="background-color:{{#var:tblColorData}};" class="autowidth"
  {|style="background-color:{{#var:tblColorData}};" class="autowidth"
  !{{message|Status}}:
  !{{message|Status}}:
-
  |style="text-align:left;"|{{{field
+
  |{{{field|status|property=docinfo status|input type=dropdown|values=draft,effective,obsolete|default={{#if:{{#var:newpage}}|draft}} }}}
-
  |status
+
-
  |property=docinfo status
+
-
  |input type=dropdown
+
-
  |values=draft,effective,obsolete
+
-
  }}}
+
  !{{message|Progress}}:
  !{{message|Progress}}:
-
  |style="text-align:left;"|{{{field
+
  |{{{field|progress|property=docinfo progress|input type=dropdown}}}
-
  |progress
+
-
  |property=docinfo progress
+
-
  |input type=dropdown
+
-
  }}}
+
  |-
  |-
  !{{message|Language}}:
  !{{message|Language}}:
-
  |style="text-align:left;"|{{{field|lang|input type=text|size=10}}}
+
  |{{#if:{{#var:path}}
 +
  |&nbsp;''{{#show:{{#var:root}}|?docinfo language}} - <!--
 +
  -->{{#language:{{#show:{{#var:root}}|?docinfo language}} }}''
 +
  |{{{field|lang|input type=text|size=8}}}
 +
  }}
  !{{message|Priority}}:
  !{{message|Priority}}:
-
  |style="text-align:left;"|{{{field
+
  |{{{field|priority|property=docinfo priority|input type=dropdown}}}
-
  |priority
+
-
  |property=docinfo priority
+
-
  |input type=dropdown
+
-
  }}}
+
  |-
  |-
  !{{message|Category}}:
  !{{message|Category}}:
-
  |colspan="3"|{{{field
+
  |colspan="3"|{{{field|category|property=docinfo category|input type=text}}}
-
  |category
+
-
  |property=docinfo category
+
-
  |input type=text
+
-
  }}}
+
  |-
  |-
  !{{message|Author}}:
  !{{message|Author}}:
-
  |colspan="3"|{{{field|author|input type=text}}}
+
  |colspan="3"|{{{field|author|input type=text|default={{#if:{{#var:newpage}}|current user}} }}}
  |-
  |-
  !{{message|Editor}}:
  !{{message|Editor}}:
Line 222: Line 190:
|}
|}
{{{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=18
+
{{:Form:Book/free text}}
-
|cols=60
+
-
|class=fullwidth
+
-
}}}
+
{{{standard input|summary}}}
{{{standard input|summary}}}
Line 234: 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