FANDOM

Henstepl

  • My occupation is Certified Subway Sandwich Artist
  • I am Male
Revision as of 10:59, December 31, 2017 by Henstepl (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
| User talk:Henstepl
Hi! I'm Henstepl.

I am trying to reduce the amount of effort a user has to go to to copy templates from this wiki to their own. Ideally: it would be none at all, beyond copying the template and its /doc subpage outright. There should be no redlink templates or interwikis to blight their wikis.

Here's my current projects. If you have any comments or concerns, leave me a message at my talk page, or on a talk page relevant to your concern.

SPW Edit

Currently there is a template at Template:SPW that exists at the top of most templates' /doc subpages, virtually certain to redlink on copying the documentation to the user's wiki.

There are four cases for this template:

Default (no parameter)
"Editors have not checked whether this template is or is not on the Starter Pages Wikia."
is on
"This template or a similar one is on the Starter Pages Wikia, whence it is incorporated in every new Wikia site and can be copied to older ones."
is not on
"This template is not on the Starter Pages Wikia. It can be copied to other Wikia sites, but it is not included on any by default." Tentatively blanked in order to prevent duplication.
is newer
"This template is newer than a similar one on the Starter Pages Wikia. This template may therefore have bug fixes or improvements when compared to the older version."

What I have done Edit

I have moved the information conveyed by this template to a parameter of Template:Documentation. Now, this information can be conveyed without causing a redlink for Template:SPW on the end user's wiki. The four cases described before are now:

Default (no parameter)
"This template is not on the Starter Pages Wikia. It can be copied to other Wikia sites, but it is not included on any by default."
{{documentation|SPW=is on}}
"This template or a similar one is on the Starter Pages Wikia, whence it is incorporated in every new Wikia site and can be copied to older ones." This parameter is not required, because the template is checked against a list of the SPW templates with Template:Is SPW.
{{documentation|SPW=is not on}}
This parameter is not required, because it displays the same message as the default.
{{documentation|SPW=is newer}}
"This template is newer than a similar one on the Starter Pages Wikia. This template may therefore have bug fixes or improvements when compared to the older version."

In recognition of our custom Template:Documentation which is not meant to be copied to the user's wiki, there is also a |SPW=is not relevant parameter discouraging the user from copying templates particular to this wiki. Specify the name of the template meant for copying with |SPW-link=<pagename>.

The result of my changes is the information conveyed by Template:SPW does not have to be specified at all for all cases except templates updated from SPW templates (and templates particular to this wiki). If parameters are explicitly used to convey the information, those parameters can be copied to other users' wikis without changing a thing, because no other wiki should have the same Template:Documentation as us.

In the future Edit

Calls for Template:SPW may be removed en masse, finally removing swathes of redlinks from being copied to users' wikis. This may be suited for a bot action.

Templates only relevant to this wiki may be moved to the corresponding locations in the Project namespace. This would simplify the SPW code even further, as the only case that the |SPW= parameter would be needed would be if the template is newer than its equivalent on SPW.

Interlanguage links Edit

This wiki is interlanguage linked with ja.templates, zh.templates, and a non-existant de.vorlagen.wikia.com and tl.templates.wikia.com. Users have placed interlanguage links on many templates linking them with their foreign-language counterparts, and the same has been added to their documentation.

This has been done by adding the interlanguage link for both templates and their documentation to the /doc subpage, using include rules to control where they appear. Unfortunately this represents an insertion of effort for the end user seeking to copy templates to their wiki, as the user is likely to want to copy the documentation as well.

What I have done Edit

I have added |ja= |zh= parameters to Template:Documentation, allowing the interlanguage links to be added to the template page in a manner that does not copy the interlanguage link to the user's wiki; neither does it copy a redlink in its place.

But neither an interlanguage link nor a parameter is needed when the two templates have the same PAGENAME. I have used my templates Template:Is JA and Template:Is ZH in the documentation template to automatically include interlanguage links. Those two listed templates should be updated periodically.

In the future Edit

Calls for interlanguage links can be removed en masse from Template pages.

Instructions Edit

I have added instructions for copying templates to our custom Template:Documentation, instructing the user to copy both the template and its documentation. These instructions will not be copied to the end user's wiki.

Community content is available under CC-BY-SA unless otherwise noted.