Form:Book

From open-support.info

(Difference between revisions)
Jump to: navigation, search
m
m
 
(66 intermediate revisions not shown)
Line 16: Line 16:
|{{#vardefine:main|}}
|{{#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|onlyinclude free text}}}
+
{{{info|onlyinclude free text|strict}}}
-
{{{for template|Book|strict}}}
+
{{{for template|Book}}}
<!--
<!--
-
  root: {{#var:root}}
+
- debug -
-
  path: {{#var:path}}
+
  root:   {{#var:root}}
-
  main: {{#var:main}}
+
  path:   {{#var:path}}
 +
  main:   {{#var:main}}
 +
newpage: {{#var:newpage}}
-->
-->
{|style="width:100%;" cellspacing="0"
{|style="width:100%;" cellspacing="0"
Line 44: Line 47:
   }}
   }}
   |ja= ページプロパティを定義します{{#if:{{#var:path}}
   |ja= ページプロパティを定義します{{#if:{{#var:path}}
-
   |。 入力欄が空白の場合は、主文書のプロパティ値を継承します
+
   |。 入力欄が空白の場合は、主文書のプロパティ値が継承されます
   }}。
   }}。
   }}
   }}
Line 55: Line 58:
     -->"|{{message|Document information}} {{
     -->"|{{message|Document information}} {{
  #info:{{LangSwitch
  #info:{{LangSwitch
-
   |en= <small>These inputs specify information for ducument management{{#if:{{#var:path}}
+
   |en= These inputs specify document information{{#if:{{#var:path}}
   |, or are inherited from the root page of this book if they are blank
   |, or are inherited from the root page of this book if they are blank
-
   }}.</small>
+
   }}.
 +
  |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}}
 +
  |。 入力欄が空白の場合は、ブックのルートページの情報が継承されます
 +
  }}。
   }}
   }}
  }}
  }}
Line 71: Line 83:
   |{{#if:{{#var:main}}
   |{{#if:{{#var:main}}
   |&nbsp;[[{{#show:{{#var:root}}|?docinfo master page#}}/{{#var:path}}]]
   |&nbsp;[[{{#show:{{#var:root}}|?docinfo master page#}}/{{#var:path}}]]
-
   |&nbsp;''{{LangSwitch
+
   |&nbsp;''n/a''
-
    |en= Current page
+
-
    |de= Aktueller Seite
+
-
    |fr= Page actuel
+
-
    |ja= 現在のページ
+
-
    }}''
+
   }}
   }}
-
   |{{{field
+
   |{{{field|master page|property=docinfo master page|input type=text|size=40|class=fullwidth}}}
-
  |master page
+
-
  |input type=text
+
-
  |size=40
+
-
  |class=fullwidth
+
-
  }}}
+
   }}
   }}
  |{{#if:{{#var:path}}
  |{{#if:{{#var:path}}
Line 96: Line 98:
   }}
   }}
  |-
  |-
-
  !
+
  !<!-- BLANK -->
  |&nbsp;{{message|Revision ID}}:  {{#switch:THEN
  |&nbsp;{{message|Revision ID}}:  {{#switch:THEN
   |{{#if:{{#var:path}}|NOT|THEN}}
   |{{#if:{{#var:path}}|NOT|THEN}}
-
   |{{#if:{{#var:main}}|NOT|THEN}}={{{field
+
   |{{#if:{{#var:main}}|THEN}}={{{field|master rev|property=docinfo master rev|input type=text|size=10|class=autowidth}}}{{#info:{{LangSwitch
-
  |master rev
+
-
  |input type=text
+
-
  |size=10
+
-
  |class=autowidth
+
-
  }}}{{#info:{{LangSwitch
+
     |en= Input the revision id of the master page to detect obsolescence, as required.
     |en= Input the revision id of the master page to detect obsolescence, as required.
     |de= Geben Sie die Revision der Master-Seite-ID, um überholte erkennen, wie erforderlich.
     |de= Geben Sie die Revision der Master-Seite-ID, um überholte erkennen, wie erforderlich.
Line 119: Line 116:
  |{{#switch:THEN
  |{{#switch:THEN
   |{{#if:{{#var:main}}|NOT|THEN}}
   |{{#if:{{#var:main}}|NOT|THEN}}
-
   |{{#if:{{#var:path}}|NOT|THEN}}={{{field
+
   |{{#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}} }} }} }}}
-
  |next
+
-
  |input type=text
+
-
  |size=40
+
-
  |class=fullwidth
+
-
  }}}
+
   |&nbsp;[[{{#rel2abs:{{#show:{{#var:main}}|?book next}} }}]]
   |&nbsp;[[{{#rel2abs:{{#show:{{#var:main}}|?book next}} }}]]
   }}
   }}
-
  |{{#if:{{#var:path}}
+
  |{{#switch:THEN
-
  |
+
  |{{#if:{{#var:main}}|NOT|THEN}}
-
   |{{#info:{{LangSwitch
+
   |{{#if:{{#var:path}}|NOT|THEN}}={{
 +
  #info:{{LangSwitch
     |en= This input required when it is the master page, normally with a relative path description.
     |en= This input required when it is the master page, normally with a relative path description.
     |ja= このページが主ページの場合に入力してください。 通常は相対パスで表記します。
     |ja= このページが主ページの場合に入力してください。 通常は相対パスで表記します。
Line 137: Line 130:
  |-
  |-
  !{{message|Heading}}:
  !{{message|Heading}}:
-
  |{{{field
+
  |{{{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}}|/|.}}.}} }} }} }}}
-
  |heading
+
-
  |input type=text
+
-
  |size=40
+
-
  |class=fullwidth
+
-
  }}}
+
  |{{#info:{{message|Default value}}: {{#if:{{#var:main}}
  |{{#info:{{message|Default value}}: {{#if:{{#var:main}}
-
   |{{#show:{{#var:main}}|?book header}}
+
   |{{#show:{{#var:main}}|?book heading}}
   |''blank''
   |''blank''
   }}
   }}
Line 150: Line 138:
  |-
  |-
  !{{message|Title}}:
  !{{message|Title}}:
-
  |{{{field
+
  |{{{field|title|property=book title|input type=text|size=40|class=fullwidth|default={{#if:{{#var:main}}|{{#show:{{#var:main}}|?book title}} }} }}}
-
  |title
+
-
  |input type=text
+
-
  |size=40
+
-
  |class=fullwidth
+
-
  }}}
+
  |{{#info:{{message|Default value}}: {{#if:{{#var:main}}
  |{{#info:{{message|Default value}}: {{#if:{{#var:main}}
   |{{#show:{{#var:main}}|?book title}}
   |{{#show:{{#var:main}}|?book title}}
Line 163: Line 146:
  |-
  |-
  !{{message|Description}}:
  !{{message|Description}}:
-
  |{{{field
+
  |{{{field|desc|property=description|input type=text|size=40|class=fullwidth}}}
-
  |desc
+
-
  |input type=text
+
-
  |size=40
+
-
  |class=fullwidth
+
-
  }}}
+
  |{{
  |{{
   #info:{{message|Default value}}: {{
   #info:{{message|Default value}}: {{
Line 185: Line 163:
  {|style="background-color:{{#var:tblColorData}};" class="autowidth"
  {|style="background-color:{{#var:tblColorData}};" class="autowidth"
  !{{message|Status}}:
  !{{message|Status}}:
-
  |{{{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}}:
-
  |{{{field
+
  |{{{field|progress|property=docinfo progress|input type=dropdown}}}
-
  |progress
+
-
  |property=docinfo progress
+
-
  |input type=dropdown
+
-
  }}}
+
  |-
  |-
  !{{message|Language}}:
  !{{message|Language}}:
Line 202: Line 171:
   |&nbsp;''{{#show:{{#var:root}}|?docinfo language}} - <!--
   |&nbsp;''{{#show:{{#var:root}}|?docinfo language}} - <!--
   -->{{#language:{{#show:{{#var:root}}|?docinfo language}} }}''
   -->{{#language:{{#show:{{#var:root}}|?docinfo language}} }}''
-
   |{{{field|lang|input type=text|size=10}}}
+
   |{{{field|lang|input type=text|size=8}}}
   }}
   }}
  !{{message|Priority}}:
  !{{message|Priority}}:
-
  |{{{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 230: Line 191:
{{{end template}}}
{{{end template}}}
'''{{message|Contents}}:'''
'''{{message|Contents}}:'''
-
{{{standard input|free text
+
<!-- {{{standard input|free text|rows=25|cols=60|preload=Template:Book/preload|class=fullwidth}}} -->
-
|rows=25
+
{{:Form:Book/free text}}
-
|cols=60
+
-
|class=fullwidth
+
-
}}}
+
{{{standard input|summary}}}
{{{standard input|summary}}}
Line 241: 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