টেমপ্লেট:Sandbox/নথি: সংশোধিত সংস্করণের মধ্যে পার্থক্য

বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
IqbalHossain (আলোচনা | অবদান)
IqbalHossain ব্যবহারকারী টেমপ্লেট:\sandbox/নথি পাতাটিকে টেমপ্লেট:Sandbox/নথি শিরোনামে স্থানান্তর করেছেন
IqbalHossain (আলোচনা | অবদান)
সম্পাদনা সারাংশ নেই
 
১ নং লাইন:
{{নথির উপপাতা}}
{{Template shortcut |\sandboxSandbox}}
<!-- বিষয়শ্রেণীসমূহ এই পাতার নীচের অংশে যাবে এবং আন্তঃউইকি সংযোগ উইকিউপাত্তে যাবে। -->
 
: {{tc|When in sandbox (|''return this, otherwise'') ''return'' "/sandbox" (|''else return this'')}}
 
Returns "/sandboxSandbox"{{aside|or, if supplied, the first unnamed parameter ("''return this''" above)}} if the template detects that the page where it is [[Wikibooks:Transclusion|transcluded]] is a [[Wikibooks:Subpages|subpage]] named "sandbox" (i.e. a [[Wikibooks:About the Sandbox|sandbox page]]); otherwise it returns nothing{{spndash}}or, if supplied, the second unnamed parameter ("''else return this''" above). It corresponds to {{plaincode|<nowiki>{{When pagename is |/sandbox={{{</nowiki>''return this''<nowiki>|/sandbox}}} |other={{{</nowiki>''else return this''<nowiki>|}}}}}</nowiki>}}.
 
This can be useful to e.g. switch the version of a template used in its /doc[umentation] to the version in its sandbox (by replacing {{mono|{{((}}''template_name''}}&nbsp;... on the /doc page with {{mono|{{((}}''template_name''<nowiki>{{\sandbox}}</nowiki>}}&nbsp;...) when that documentation is [[Wikibooks:Transclusion|transcluded]] on the template's sandbox page.