Template:EditState View history

(corrected template parameter)
m (→‎Editing custom sections: Added info on purge button)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{mbox|type=notice|text=This table will only work on a page when transcluded.}}{{:USA/CommonState/ForumLink}}</noinclude>
<noinclude>{{mbox|type=notice|text=This table will only work on a page when transcluded.}}{{:USA/CommonState/ForumLink}}</noinclude>
<!-- This template include the section heading and description to prevent alteration on individual pages -->
<!-- This template include the section heading and description to prevent alteration on individual pages -->
<!--
---- Do not edit this page directly.
---- Do not edit the {{EditState}} template without consensus from the other
---- state and country managers.
----
---- To modify the content of this page, go to the discussion page of the main
---- state page. Go to the section called [[Editing custom sections]] and use the
---- links there. If you do not see that section, then go to the main page, scroll
---- to the bottom, and press the link that creates that section, and then use it.
-->
== Editing custom sections ==
== Editing custom sections ==
The {{BasePage2}} page is controlled by a template that automatically integrates common and unique content. The table below provides links to all the possible customizable sections and pages under {{BasePage2}}.
The {{BasePage2}} page is controlled by a template that automatically integrates common and unique content. The table below provides links to all the possible customizable sections and pages under {{BasePage2}}.
Line 7: Line 17:


Resist creating pages using the red links visible on the main page. Use these links on the talk page to ensure the preload text is added to the page to help set it up properly.
Resist creating pages using the red links visible on the main page. Use these links on the talk page to ensure the preload text is added to the page to help set it up properly.
Due to limitations of the Wiki language, the table will not reflect changes after adding content until the page is forced to update by pressing the link at the top of the table below, or press the green recycle image [[file:Recycle-green-open.png|16px]] at the top right above the map image on the main page.


{| class="wikitable"
{| class="wikitable"
| colspan="3" | <div class="center"><span class="noprint plainlinks purgelink">[{{FULLURL:Talk:{{BasePage2}}|action=purge}} <span title="Update table">Press here to update table after creating new page sections&nbsp;</span>]</span></div>
|-
|+ Edit Custom Pages for {{BasePage2}}
|+ Edit Custom Pages for {{BasePage2}}
! <!--scope="col" width="33%" |-->Section
! <!--scope="col" width="33%" |-->Section
Line 26: Line 40:
| style="background-color: #FFC0DF;" |{{ModifyPage|Intro}}
| style="background-color: #FFC0DF;" |{{ModifyPage|Intro}}
|-
|-
| {{anchor|Resources}}Resources
| {{anchor|Resources}}Mapping resources
| style="background-color: #C0FFDF;" |{{ModifyPage|Resources/Main}}
| style="background-color: #C0FFDF;" |{{ModifyPage|Resources/Main}}
| style="background-color: #FFFFC0;" |{{ModifyPage|Resources}}
| style="background-color: #FFFFC0;" |{{ModifyPage|Resources}}
|-
|-
| {{anchor|Forum}}Forum
| {{anchor|Forum}}Community
| style="background-color: #C0FFDF;" |{{ModifyPage|Forum/Main}}
| style="background-color: #C0FFDF;" |{{ModifyPage|Community/Main}}
| style="background-color: #FFFFC0;" |{{ModifyPage|Forum}}
| style="background-color: #FFFFC0;" |{{ModifyPage|Community}}
|-
|-
| {{anchor|Cities and towns}}Cities and towns
| {{anchor|Cities and towns}}Cities and towns
Line 41: Line 55:
| style="background-color: #FFFFC0;" |{{ModifyPage|Major roads/Main}}
| style="background-color: #FFFFC0;" |{{ModifyPage|Major roads/Main}}
| style="background-color: #FFFFC0;" |{{ModifyPage|Major roads}}
| style="background-color: #FFFFC0;" |{{ModifyPage|Major roads}}
|-
| {{anchor|Special roads}}Special roads
| style="background-color: #FFFFC0;" |{{ModifyPage|Special roads/Main}}
| style="background-color: #FFFFC0;" |{{ModifyPage|Special roads}}
|-
| {{anchor|Construction}}Closures
| style="background-color: #FFFFC0;" |{{ModifyPage|Closures/Main}}
| style="background-color: #FFFFC0;" |{{ModifyPage|Closures}}
|-
|-
| {{anchor|Places}}Places
| {{anchor|Places}}Places
| style="background-color: #FFFFC0;" |{{ModifyPage|Places/Main}}
| style="background-color: #FFFFC0;" |{{ModifyPage|Places/Main}}
| style="background-color: #FFC0DF;" |{{ModifyPage|Places}}
| style="background-color: #FFC0DF;" |{{ModifyPage|Places}}
|-
| {{anchor|Construction}}Construction
| style="background-color: #FFFFC0;" |{{ModifyPage|Construction/Main}}
| style="background-color: #FFFFC0;" |{{ModifyPage|Construction}}
|-
|-
| {{anchor|Cameras}}Cameras
| {{anchor|Cameras}}Cameras
Line 54: Line 72:
| style="background-color: #FFC0DF;" |{{ModifyPage|Cameras}}
| style="background-color: #FFC0DF;" |{{ModifyPage|Cameras}}
|-
|-
| {{anchor|Special roads}}Special roads
| {{anchor|To do}}To do list
| style="background-color: #FFFFC0;" |{{ModifyPage|Special roads/Main}}
| style="background-color: #FFFFC0;" |{{ModifyPage|Special roads}}
|-
| {{anchor|To do}}To do
| style="background-color: #C0FFDF;" |{{ModifyPage|To do/Main}}
| style="background-color: #C0FFDF;" |{{ModifyPage|To do/Main}}
| style="background-color: #FFFFC0;" |{{ModifyPage|To do}}
| style="background-color: #FFFFC0;" |{{ModifyPage|To do}}
|-
|-
| {{anchor|Area Managers}}Area Managers
| {{anchor|Area Managers}}Area Managers{{ref|a|1}}
| style="background-color: #C0FFDF;" |{{ModifyPage|Area Managers/Main}}
| style="background-color: #C0FFDF;" |{{ModifyPage|Area Managers/Main}}{{ref|b|1}}
| style="background-color: #FFC0DF;" |{{ModifyPage|Area Managers}}
| style="background-color: #FFC0DF;" |{{ModifyPage|Area Managers}}
|-
|-
| {{anchor|Other Area Editors}}Other Area Editors<!-- Special section of AM table -->
| {{anchor|Other Area Editors}}Other Area Editors<!-- Special section of AM table -->
| style="background-color: #C0FFDF;" |{{ModifyPage|AM/Area2Link|PreloadFull=Template:AM/Area2Link}}
| style="background-color: #C0FFDF;" |{{ModifyPage|AM/Editor/Area2|PreloadFull=USA/CommonState/AM/Editor/Area2/Main}}
| style="background-color: #FFC0DF;" |N/A
| style="background-color: #FFC0DF;" |N/A
|-
|-
Line 77: Line 91:
| style="background-color: #FFC0DF;" |{{ModifyPage|Other/Main}}
| style="background-color: #FFC0DF;" |{{ModifyPage|Other/Main}}
| style="background-color: #FFC0DF;" |{{ModifyPage|Other}}
| style="background-color: #FFC0DF;" |{{ModifyPage|Other}}
|-
! colspan="3" | Other links to custom {{BasePage2}} pages
|-
| {{anchor|Testing}}Testing
| style="background-color: #FFFFC0;" |{{ModifyPage|Settings}}
| style="background-color: #FFC0DF;" |N/A
|}
|}
:<small>1.{{note|a}}{{note|b}}Once the Area Manager table is created, all edits can be made directly from the main page using the links below the section headings in the table itself (not this talk page). This link will only provide access to the Country and State manager section of the Area Manager table.</small>


{| class="wikitable"
{| class="wikitable"

Latest revision as of 08:14, 9 May 2017

This table will only work on a page when transcluded.
This page serves as a common template to over 50 other pages. Do not make modifications to this page before reviewing the proposed changes in this Waze forum thread first.

Editing custom sections

The EditState page is controlled by a template that automatically integrates common and unique content. The table below provides links to all the possible customizable sections and pages under EditState.

If a Unique Portion page is cleared or blanked, it will still exist and prevent the optional guidance from the CommonState page as designed. Be sure that is the intended outcome, otherwise the Unique Portion page must be fully deleted to enable the optional content to appear. A future release of the template may be able to fix that issue.

Resist creating pages using the red links visible on the main page. Use these links on the talk page to ensure the preload text is added to the page to help set it up properly.

Due to limitations of the Wiki language, the table will not reflect changes after adding content until the page is forced to update by pressing the link at the top of the table below, or press the green recycle image at the top right above the map image on the main page.

Edit Custom Pages for EditState
Section Unique Portion Unique Page
Overview Click here to create Click here to create
Notice Click here to create Click here to create
Introduction Edit Edit
Mapping resources Click here to create Click here to create
Community Edit Click here to create
Cities and towns Click here to create Click here to create
Major roads Click here to create Click here to create
Special roads Click here to create Click here to create
Closures Click here to create Click here to create
Places Click here to create Click here to create
Cameras Click here to create Click here to create
To do list Click here to create Click here to create
Area Managers1 Click here to create1 Click here to create
Other Area Editors Click here to create N/A
Other states and territories Click here to create Click here to create
Other Click here to create Click here to create
Other links to custom EditState pages
Testing Click here to create N/A
1.^ ^ Once the Area Manager table is created, all edits can be made directly from the main page using the links below the section headings in the table itself (not this talk page). This link will only provide access to the Country and State manager section of the Area Manager table.
Legend
Commonly created
Sometimes created
Not typically created
Documentation icon Template documentation[view] [edit] [history] [purge]

This template is part of the CommonState template suite. It is currently only set up to work on the United States and its territories.

Usage

Primary template

The primary template, {{[[::USA/CommonState|:USA/CommonState]]}}, is placed on each state page. It includes both code and displayed text that is used to combine the common guidance and the individual state unique guidance.

Supporting templates

Start

  • {{[[::USA/CommonState/Start|:USA/CommonState/Start]]}} - This template is used on new state pages as the only code on the page:
{{subst::USA/CommonState/Start}}
Once that page is saved it will automatically display the required template and supporting comments preventing users for editing the wrong content.
Alternately copy and paste this code below into the browser. Change the STATENAME at the end of the line to the name of the state or territory being created. Use the name as spelled in the Template:USA_Navbox
https://wiki.waze.com/wiki/index.php?action=submit&summary=Create%20new%20state&preload=USA/CommonState/Start&preview=yes&title=STATENAME

SectionProcess

  • {{[[::USA/CommonState/SectionProcess|:USA/CommonState/SectionProcess]]}} - This (Main namespace) template (not in the Template namespace) is called from the {{[[::USA/CommonState|:USA/CommonState]]}} template. It is the common logic used on the {{[[::USA/CommonState|:USA/CommonState]]}} template to determine if the universal content should come before or be displaced by the unique state content, and if the unique content subpage is not present, it provides a link to generate a unique content page. It has one required parameter with the name of the subpage for the section.

TalkTableElement

  • {{[[::USA/CommonState/TalkTableElement|:USA/CommonState/TalkTableElement]]}} - Helps build the subpage edit table.

Related templates

EditState

  • {{EditState}} - Placed on the talk page of a state or territory to edit the customized content for that state and use the preloads linked on Talk:USA/CommonState. That is also the best place from which to edit them as well.
The above documentation is transcluded from USA/CommonState/doc.
Subpages of this template.