Template:UseThisModel: Difference between revisions
Create Template:UseThisModel: reusable Use this model box (native preload), per Theo 2026-07-08 |
Rename Open Call to Open Calls; remove reputation credits (Theo 2026-08-03) |
||
| Line 1: | Line 1: | ||
<div style="border:1px solid #c8ccd1;border-radius:6px;padding:0.8em 1.2em;background:#f8f9fa;margin:0.5em 0;"> | <div style="border:1px solid #c8ccd1;border-radius:6px;padding:0.8em 1.2em;background:#f8f9fa;margin:0.5em 0;"> | ||
<span id="use-this-model"></span>'''Use this model.''' Users can copy a neutral contract model and then start editing their own copy freely: the original model page stays intact. MediaWiki offers a native way to do this: open an address of the form <code><nowiki>https://wikideal.net/w/index.php?title=</nowiki>TITLE-OF-YOUR-COPY<nowiki>&action=edit&preload=</nowiki>{{{1|{{FULLPAGENAMEE}}}}}</code>. Replace <code>TITLE-OF-YOUR-COPY</code> with the exact title of the new page you want to create; a clear, specific title (for example the type of deal and a date) makes the copy easy to find later. The <code>preload</code> value must be the exact title of the model page to copy, for example <code>Markets/en/Portal:Babysitting/Contract-Model:Babysitting</code>; on a model page, this box already shows that page's title. The editor then opens pre-filled with the model, ready to be adapted. When copying a model, you also need to determine in which portal your contract belongs (transportation, housing, personal services, and so on); the categories for this classification remain to be created and are part of the questions of the [[Gov/en/Portal:R&D/Open- | <span id="use-this-model"></span>'''Use this model.''' Users can copy a neutral contract model and then start editing their own copy freely: the original model page stays intact. MediaWiki offers a native way to do this: open an address of the form <code><nowiki>https://wikideal.net/w/index.php?title=</nowiki>TITLE-OF-YOUR-COPY<nowiki>&action=edit&preload=</nowiki>{{{1|{{FULLPAGENAMEE}}}}}</code>. Replace <code>TITLE-OF-YOUR-COPY</code> with the exact title of the new page you want to create; a clear, specific title (for example the type of deal and a date) makes the copy easy to find later. The <code>preload</code> value must be the exact title of the model page to copy, for example <code>Markets/en/Portal:Babysitting/Contract-Model:Babysitting</code>; on a model page, this box already shows that page's title. The editor then opens pre-filled with the model, ready to be adapted. When copying a model, you also need to determine in which portal your contract belongs (transportation, housing, personal services, and so on); the categories for this classification remain to be created and are part of the questions of the [[Gov/en/Portal:R&D/Open-Calls:URL-Structure|open call on URL naming and structure]]. | ||
</div><noinclude> | </div><noinclude> | ||
== Documentation == | == Documentation == | ||
Latest revision as of 21:52, 3 August 2026
Use this model. Users can copy a neutral contract model and then start editing their own copy freely: the original model page stays intact. MediaWiki offers a native way to do this: open an address of the form https://wikideal.net/w/index.php?title=TITLE-OF-YOUR-COPY&action=edit&preload=Template:UseThisModel. Replace TITLE-OF-YOUR-COPY with the exact title of the new page you want to create; a clear, specific title (for example the type of deal and a date) makes the copy easy to find later. The preload value must be the exact title of the model page to copy, for example Markets/en/Portal:Babysitting/Contract-Model:Babysitting; on a model page, this box already shows that page's title. The editor then opens pre-filled with the model, ready to be adapted. When copying a model, you also need to determine in which portal your contract belongs (transportation, housing, personal services, and so on); the categories for this classification remain to be created and are part of the questions of the open call on URL naming and structure.
Documentation
This template displays a compact "Use this model" box on contract model pages. It explains how to copy a neutral contract model with the native MediaWiki preload mechanism.
Usage:
{{UseThisModel}}on a contract model page: the preload address is filled in automatically with the title of the current page.{{UseThisModel|Some-Page-Title}}anywhere else: the first parameter sets the preload title (a placeholder such asTITLE-OF-THE-MODEL-PAGEcan be used on explanatory pages).