Information icon.png 寄付のお願い
現在、本Wikiは深刻な資金難に陥っています。(管理人の発言)
そのため、本Wiki存続のために寄付をお願いします。我々はチームになりつつあります。声なき声に力を。
寄付先
XMR:42V16ycnmYUScKJDLUmnCDZ2BrnPQrojzdBqVgFHdFw9e3pwxyzwhgMYaMBAXRDiYaNGh9Kuw2SxXKo6SMW935RUQEprark
LTC:ltc1qaxex5efs7pk25yke8m7e2qrwsj70lwv2nwjyd4

「テンプレート:Twitterlink」の版間の差分

ナビゲーションに移動 検索に移動
リダイレクト防止
*>PKPKDANCE
(2chwikiからまるまる移植)
 
(リダイレクト防止)
 
(14人の利用者による、間の26版が非表示)
1行目: 1行目:
<includeonly>{{#if: {{{ID|}}} | <span style="font-family:'Helvetica Neue',Arial,Helvetica,sans-serif; background-color:#EEF9FD; color:#186487; font-weight:bold; padding:0.3em; font-size:15px;">Twitter:<span class="plainlinks">[http://twitter.com/{{#if:{{{NumberID|}}}|intent/user?user_id={{{NumberID}}}|{{{ID}}}}} <span style="color:#186487;">@{{{ID}}}</span>]</span></span>}}</includeonly><noinclude>
<includeonly>{{#if: {{{ID|}}} | <span style="font-family:'Helvetica Neue',Arial,Helvetica,sans-serif; background-color:#EEF9FD; color:#186487; font-weight:bold; padding:0.3em; font-size:15px;">Twitter:<span class="plainlinks">[https://x.com/{{#if:{{{NumberID|}}}|intent/user?user_id={{{NumberID}}}|{{{ID}}}}} <span style="color:#186487;">@{{{ID}}}</span>]</span></span>}}</includeonly><noinclude>
<!-- ★ここまでテンプレの実際の内容。ここから解説。★ -->
<!-- ★ここまでテンプレの実際の内容。ここから解説。★ -->
{{SemiProtect}}
Twitterアカウントへリンクを貼るテンプレです。
Twitterアカウントへリンクを貼るテンプレです。
== 使い方見本 ==
== 使い方見本 ==
9行目: 10行目:
|-
|-
! 指定なし
! 指定なし
|<pre>{{twitterlink|ID=CodeMonkeyZ}}</pre>
|<pre>{{twitterlink|ID=CallinShow}}</pre>
|{{twitterlink|ID=CodeMonkeyZ}}
|{{twitterlink|ID=CallinShow}}
|-
|-
! 任意の文字列
! 任意の文字列
|<pre>{{twitterlink|コードモンキーのTwitter |ID=CodeMonkeyZ}}</pre>
|<pre>{{twitterlink|唐睾睾睾の降臨ショー Twitter |ID=CallinShow}}</pre>
|{{twitterlink|コードモンキーのTwitter |ID=CodeMonkeyZ}}
|{{twitterlink|唐睾睾睾の降臨ショー Twitter |ID=CallinShow}}
|-
|-
! 半角スペース
! 半角スペース
|<pre>{{twitterlink| |ID=CodeMonkeyZ}}</pre>
|<pre>{{twitterlink| |ID=CallinShow}}</pre>
|{{twitterlink| |ID=CodeMonkeyZ}}
|{{twitterlink| |ID=CallinShow}}
|}
|}


30行目: 31行目:
Twitterには一般的に見ているID(screen_name)以外に、固定の数字IDというものが存在する。<br />設定で簡単に変更できるscreen_nameと異なり、数字IDはアカウントを取った時から変わることはない。これを用いてID変更を追尾しようというもの。
Twitterには一般的に見ているID(screen_name)以外に、固定の数字IDというものが存在する。<br />設定で簡単に変更できるscreen_nameと異なり、数字IDはアカウントを取った時から変わることはない。これを用いてID変更を追尾しようというもの。


例えば、[[ひろゆき]]のアカウントの場合、''"hiroyuki_ni"''以外に''"87027640"''という固定の数字IDが割り当てられており、[http://twitter.com/intent/user?user_id=87027640 http://twitter.com/intent/user?user_id=87027640]というURLでもアクセスできる。<br />このURLであれば、もし仮にひろゆきがIDを''"hiroyuki_ni"''から''"tarako_kuchibiru"''とかに設定変更したとしても、(アカウント自体を削除されない限り)リンク切れになることはない。
例えば、[[ひろゆき]]のアカウントの場合、''"hirox246"''以外に''"87027640"''という固定の数字IDが割り当てられており、[https://twitter.com/intent/user?user_id=87027640 https://twitter.com/intent/user?user_id=87027640]というURLでもアクセスできる。<br />このURLであれば、もし仮にひろゆきがIDを''"hirox246"''から''"tarako_kuchibiru"''とかに設定変更したとしても、(アカウント自体を削除されない限り)リンク切れになることはない。
=== IDの調べ方 ===
=== IDの調べ方 ===
<nowiki>https://twitter.com/intent/user?screen_name=hiroyuki_ni</nowiki>を開いてソースを見ると、<pre><meta name="native-url" content="twitter://user?id=87027640"></pre>という記述がある。もしくは、[http://whotwi.com/hiroyuki_ni whotwi]などの外部サービスで調べることもできる。「twitter id 数字」とかでググるといくらでも出てくる。
<nowiki>https://twitter.com/intent/user?screen_name=hirox246</nowiki>を開いてソースを見ると、<pre><meta name="native-url" content="twitter://user?id=87027640"></pre>という記述がある。もしくは、[https://whotwi.com/hirox246 whotwi]などの外部サービスで調べることもできる。「twitter id 数字」とかでググるといくらでも出てくる。
=== 使い方 ===
=== 使い方 ===
{| class="wikitable"
{| class="wikitable"
40行目: 41行目:
|-
|-
! ネトスト仕様
! ネトスト仕様
|<pre>{{twitterlink|[[ひろゆき]]のTwitter |ID=hiroyuki_ni |NumberID=87027640}}</pre>
|<pre>{{twitterlink|[[ひろゆき]]のTwitter |ID=hirox246 |NumberID=87027640}}</pre>
|{{twitterlink|[[ひろゆき]]のTwitter |ID=hiroyuki_ni |NumberID=87027640}}
|{{twitterlink|[[ひろゆき]]のTwitter |ID=hirox246 |NumberID=87027640}}
|}
|}
※screen_nameを変更された場合、wikiでは古いscreen_nameが表示されるがリンクが切れることはない。
※screen_nameを変更された場合、wikiでは古いscreen_nameが表示されるがリンクが切れることはない。
[[category:テンプレートの一覧|Twitterlink]]
 
[[カテゴリ:リンクテンプレート]]
[[category:テンプレート|Twitterlink]]
</noinclude>
</noinclude>

案内メニュー