Template talk:New city in Morocco

From Meta, a Wikimedia project coordination wiki
Jump to: navigation, search
 <inputbox>
 type=create
 preload=Template:New_city in Morocco
 editintro=Template:New city edit intro
 default= , Morocco
 buttonlabel=Create new page for city in Morocco
 </inputbox>

gives


It uses the inputbox feature with Template:New city in Morocco containing "{{Infobox City | official_name = , Morocco | nickname = | image_flag = | image_seal = | image_map = | map_caption = Location within [[Morocco]] | subdivision_type = [[province]] | subdivision_name = [[]] | leader_title = [[]] | leader_name = | area_magnitude = | area_total = | area_land = | area_water = | population_as_of = 200 | population_note = | population_total = | population_density = | timezone = [[UTC]] | utc_offset = 0 | timezone_DST = n.a. | utc_offset_DST = n.a. | latitude = °' N | longitude = °' W | website = | footnotes = | }} '''{{Template:subst:PAGENAME}}''' is a city in the province of [[]], in [[Morocco]]. ==See also== ==External links== [[Category:Morocco]]"

and Template:New city edit intro containing "Put ":" after "subst"."

Putting {{subst:PAGENAME}} in the template would insert the name of the template instead of the city, therefore the editor is instructed to add the colon when creating the article.

<<FYI from a user>>

I created another template called substPAGENAME

containing

{{PAGENAME}}

then referenced {{Template:substPAGENAME}} instead of {{substPAGENAME}}. This replaces the correct pagename automatically on save - and stops the user having to intervene...

The objective is to have the pagename in the wikitext. I suppose your method does not achieve that, though it renders it. But that can be done with {{PAGENAME}} also.--Patrick 23:19, 3 November 2005 (UTC)