USA/CommonState/SectionProcess: Difference between revisions View history

(Created template)
 
(added reversability)
Line 1: Line 1:
{{:USA/CommonState/{{{1|Intro}}}}}<!-- Display common template seen by all states. When viewed directly, it will show the Intro subpage as a placeholder. -->
{{#ifeq: {{lc:{{{2|}}} }} | nocommon |<!-- No common display if unique exists -->
  | {{:USA/CommonState/{{{1|Intro}}}}}<!-- Otherwise display common template seen by all states. When viewed directly, it will show the Intro subpage as a placeholder. -->
}}
{{#ifeq: {{ROOTPAGENAME}} | USA<!-- Check if viewing template directly -->
{{#ifeq: {{ROOTPAGENAME}} | USA<!-- Check if viewing template directly -->
   | {{:USA/CommonState/UniqueSectionMsg}}<!-- Say final page will show here -->
   | {{:USA/CommonState/UniqueSectionMsg}}<!-- Say final page will show here -->
   | {{#ifexist: {{PAGENAME}}/{{{1|Intro}}}<!-- Check if state section exists -->
   | {{#ifexist: {{PAGENAME}}/{{{1|Intro}}}<!-- Check if unique state section exists -->
       | {{:{{PAGENAME}}/{{{1|Intro}}}}}<!-- Display state unique section -->
       | {{:{{PAGENAME}}/{{{1|Intro}}}}}<!-- Display state unique section -->
       | {{AddCode|File for unique state content for this section does not exist. Show editor how to add file. Use Show/Hide box.}}<!-- Tell how to add unique page -->
       | {{#ifeq: {{lc:{{{2|}}} }} | nocommon<!-- If normally the section will show the unique content only, then only display the common data if the unique page is missing
     }}<!-- close #ifexist -->
-->      | {{:USA/CommonState/{{{1|Intro}}}}}
}}<!-- close #ifeq -->
        }}<!-- end if nocommon with no state unique page -->
        {{AddCode|File for unique state content for this section does not exist. Show editor how to add file. Use Show/Hide box.}}<!-- Tell how to add unique page -->
     }}<!-- and if state unique page exists or not -->
}}<!-- end if viewing template directly or a transclusion -->
{{clear}}<!-- Ensure anything in section is complete before next section --><noinclude>{{documentation|USA/CommonState/doc}}</noinclude>
{{clear}}<!-- Ensure anything in section is complete before next section --><noinclude>{{documentation|USA/CommonState/doc}}</noinclude>

Revision as of 17:22, 13 July 2014

CommonState is a part of the Testing region, which includes the states and/or territories of:

XXXX / YYYY.
The final state page will show unique state content here, or will say there is nothing unique from these guidelines.
The above documentation is transcluded from USA/CommonState/doc.
Subpages of this page.